package com.yq.spbYq.service.impl;

import com.yq.spbYq.WasteLog;
import com.yq.spbYq.mapper.WasteLogMapper;
import com.yq.spbYq.service.WasteLogService;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WasteLogServiceImpl implements WasteLogService {

    @Autowired
    private WasteLogMapper mapper;

    @Override
    public int insertWasteLog(WasteLog wasteLog) {
        return mapper.insertWasteLog(wasteLog);
    }

    @Override
    public int deleteWasteLogById(Integer rId) {
        return mapper.deleteWasteLogById(rId);
    }

    @Override
    public int updateWasteLog(WasteLog wasteLog) {
        return mapper.updateWasteLog(wasteLog);
    }

    @Override
    public WasteLog selectWasteLogById(Integer rId) {
        return mapper.selectWasteLogById(rId);
    }

    @Override
    public List<WasteLog> selectAllWasteLogs() {
        return mapper.selectAllWasteLogs();
    }
}